main.h

					
/*
 * main.h
 *
 * Created: 31.01.2022 19:45:53
 *  Author: bohdan
 */ 

#ifndef MAIN_H_
#define MAIN_H_

#include <stdint.h>	

#define F_CPU 16000000UL

typedef struct
{
	uint8_t* arr;
	uint16_t size_;
	uint16_t freq;
} sinus_t;

typedef enum
{
	LOW = 0x00,
	HIGH = 0x01
} my_bool;

/* Status Flags structure
*/
typedef struct
{
	unsigned BUFF_OVF :1;
	unsigned MAX_SAMP :1;
	unsigned STOP_SOUND :1;
	unsigned RX_INT :1;
	unsigned TIM2_UPDATE :1;
	unsigned BUFF_READY :1; // Debug purposes. For waiting until the buffer has some (100) components 
}status_t;

#endif /* MAIN_H_ */